package com.team.engine.fileupload.action;

/**
 * 文件上传业务实体
 * 
 * @author MengLH
 * @data 2010-6-12
 */

public class FileuploadDomain {

	/**
	 * 上传失败的跳转路径标识，默认ERROR
	 */
	private String failureActionPath = "ERROR";

	/**
	 * 上传失败的文件名
	 */
	private String failureFileName;

	/**
	 * 文件保存路径
	 */
	private String saveDir;

	/**
	 * 允许的最大文件大小
	 */
	private String maxSize;

	/**
	 * 允许的文件类型
	 */
	private String[] filetype;

	/**
	 * 重复文件处理策略，true是覆盖，false是判为上传失败
	 */
	private boolean cover;
	
	public boolean isCover() {
		return cover;
	}

	public void setCover(boolean cover) {
		this.cover = cover;
	}

	public String getFailureFileName() {
		return failureFileName;
	}

	public void setFailureFileName(String failureFileName) {
		this.failureFileName = failureFileName;
	}

	public String getSaveDir() {
		return saveDir;
	}

	public void setSaveDir(String saveDir) {
		this.saveDir = saveDir;
	}

	public String getMaxSize() {
		return maxSize;
	}

	public void setMaxSize(String maxSize) {
		this.maxSize = maxSize;
	}

	public String[] getFiletype() {
		return filetype;
	}

	public void setFiletype(String...filetype) {
		this.filetype = filetype;
	}

	public String getFailureActionPath() {
		return failureActionPath;
	}

	public void setFailureActionPath(String failureActionPath) {
		this.failureActionPath = failureActionPath;
	}

}
